<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

function iframe($web,$width, $height) {
    $code = explode('=', $web);
    $iframe = '<iframe width="'.$width.'" height="'.$height.'" src="//www.youtube.com/embed/'.$code[1].'" frameborder="0" allowfullscreen></iframe>';
    return $iframe;    
}

?>


